Optimal. Leaf size=27 \[ -\frac {\cot (x)}{a}+\frac {\tanh ^{-1}(\cos (x))}{a}-\frac {\cot (x)}{a \csc (x)+a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {3790, 3789, 3770, 3794} \[ -\frac {\cot (x)}{a}+\frac {\tanh ^{-1}(\cos (x))}{a}-\frac {\cot (x)}{a \csc (x)+a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3770
Rule 3789
Rule 3790
Rule 3794
Rubi steps
\begin {align*} \int \frac {\csc ^3(x)}{a+a \csc (x)} \, dx &=-\frac {\cot (x)}{a}-\int \frac {\csc ^2(x)}{a+a \csc (x)} \, dx\\ &=-\frac {\cot (x)}{a}-\frac {\int \csc (x) \, dx}{a}+\int \frac {\csc (x)}{a+a \csc (x)} \, dx\\ &=\frac {\tanh ^{-1}(\cos (x))}{a}-\frac {\cot (x)}{a}-\frac {\cot (x)}{a+a \csc (x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.16, size = 63, normalized size = 2.33 \[ \frac {\tan \left (\frac {x}{2}\right )-\cot \left (\frac {x}{2}\right )-2 \log \left (\sin \left (\frac {x}{2}\right )\right )+2 \log \left (\cos \left (\frac {x}{2}\right )\right )+\frac {4 \sin \left (\frac {x}{2}\right )}{\sin \left (\frac {x}{2}\right )+\cos \left (\frac {x}{2}\right )}}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.52, size = 91, normalized size = 3.37 \[ \frac {4 \, \cos \relax (x)^{2} + {\left (\cos \relax (x)^{2} - {\left (\cos \relax (x) + 1\right )} \sin \relax (x) - 1\right )} \log \left (\frac {1}{2} \, \cos \relax (x) + \frac {1}{2}\right ) - {\left (\cos \relax (x)^{2} - {\left (\cos \relax (x) + 1\right )} \sin \relax (x) - 1\right )} \log \left (-\frac {1}{2} \, \cos \relax (x) + \frac {1}{2}\right ) + 2 \, {\left (2 \, \cos \relax (x) + 1\right )} \sin \relax (x) + 2 \, \cos \relax (x) - 2}{2 \, {\left (a \cos \relax (x)^{2} - {\left (a \cos \relax (x) + a\right )} \sin \relax (x) - a\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.56, size = 53, normalized size = 1.96 \[ -\frac {\log \left ({\left | \tan \left (\frac {1}{2} \, x\right ) \right |}\right )}{a} + \frac {\tan \left (\frac {1}{2} \, x\right )}{2 \, a} + \frac {\tan \left (\frac {1}{2} \, x\right )^{2} - 4 \, \tan \left (\frac {1}{2} \, x\right ) - 1}{2 \, {\left (\tan \left (\frac {1}{2} \, x\right )^{2} + \tan \left (\frac {1}{2} \, x\right )\right )} a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.23, size = 45, normalized size = 1.67 \[ \frac {\tan \left (\frac {x}{2}\right )}{2 a}-\frac {1}{2 a \tan \left (\frac {x}{2}\right )}-\frac {\ln \left (\tan \left (\frac {x}{2}\right )\right )}{a}-\frac {2}{a \left (\tan \left (\frac {x}{2}\right )+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.33, size = 68, normalized size = 2.52 \[ -\frac {\frac {5 \, \sin \relax (x)}{\cos \relax (x) + 1} + 1}{2 \, {\left (\frac {a \sin \relax (x)}{\cos \relax (x) + 1} + \frac {a \sin \relax (x)^{2}}{{\left (\cos \relax (x) + 1\right )}^{2}}\right )}} - \frac {\log \left (\frac {\sin \relax (x)}{\cos \relax (x) + 1}\right )}{a} + \frac {\sin \relax (x)}{2 \, a {\left (\cos \relax (x) + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.25, size = 49, normalized size = 1.81 \[ \frac {\mathrm {tan}\left (\frac {x}{2}\right )}{2\,a}-\frac {5\,\mathrm {tan}\left (\frac {x}{2}\right )+1}{2\,a\,{\mathrm {tan}\left (\frac {x}{2}\right )}^2+2\,a\,\mathrm {tan}\left (\frac {x}{2}\right )}-\frac {\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\csc ^{3}{\relax (x )}}{\csc {\relax (x )} + 1}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________